#include "histogramred.h"

histogramRed::histogramRed(QWidget *parent) : QWidget(parent)
{
}

void histogramRed::paintEvent(QPaintEvent *p)
{
    QPainter pincel(this);
    pincel.setPen(QColor(255,0,0,255));
    for(int i=0;i<256;++i)
    {
        pincel.drawLine(i,112,i,112-v->R[i]*112/v->maR);
    }


}
